<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./1.CSS">
    <style>
        body{
            height: 3000px;
        }
        /* 设置总盒子的大小 */
        .box{
            width: 1210px;
            height: 48px;
            background-color: #E8E7E3;
            /* 盒子居中 */
            margin: 200px auto;
        }

        .box1{
            line-height: 48px;
/*让块级元素中的文字垂直居中(该值要与盒子的高相同)*/
            text-align:center;
/*让块级元素中的文字水平居中*/
            float: left;
            font-size: 19px;
        }     
        /* 设置超链接的大小 */
        .box1 a{
            /* 将行内元素转化为块元素 */
            display: block;
            width: 166px;
            height: 48px;
        }


        .box2{
            line-height: 48px;
            text-align: center;
            float: left;
            font-size: 19px;
        }
        .box2 a{
            display: block;
            width: 191px;
            height: 48px;
        }
   
        .box3{
            line-height: 48px;
            text-align: center;
            float: left;
            font-size: 19px;
        }     
        .box3 a{
            display:block;
            width: 175px;
            height: 48px;
        }


        .box4{
            line-height: 48px;
            text-align: center;
            float: left;
            font-size: 19px;
        }     
        .box4 a{
            display: block;
            width: 198px;
            height: 48px;
        }


        .box5{
            line-height: 48px;
            text-align: center;
            float: left;
            font-size: 19px;
        }     
        .box5 a{
            display: block;
            width: 113px;
            height: 48px;
        }


        .box6{
            text-align: center;
            line-height: 48px;
            float: left;
            font-size: 19px;
        }    
        .box6 a{
            display: block;
            width: 197px;
            height: 48px;
        } 


        .box7{
            text-align: center;
            line-height: 48px;
            float: left;
            font-size: 19px;
        }     
        .box7 a{
            display: block;
            width: 170px;
            height: 48px;
        }
        /* 设置鼠标移动后超链接的颜色 */
        .box a:hover{
            color: #D7D6D2;
            background-color: #3f3f3f;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="box1"><a href="">HTML/CSS</a></div>
        <div class="box2"><a href="">Browser Side</a></div>
        <div class="box3"><a href="">Sever Side</a></div>
        <div class="box4"><a href="">Programming</a></div>
        <div class="box5"><a href="">XML</a></div>
        <div class="box6"><a href="">Wed Building</a></div>
        <div class="box7"><a href="">Reference</a></div>
    </div>
</body>
</html>